import {axios} from "../utils/request";

const api = "http://120.46.154.112:7903";

export function autoQAAPI(data) {
    return axios({
        url: `${api}/get_answer`,
        method: "POST",
        data: {question: data.message}
    });
}

export function resolveTextAPI(data) {
    console.log(data)
    return axios({
        url: `${api}/index`,
        method: "POST",
        data: data
    });
}